<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<div class="modal fade" tabindex="-1" role="dialog" id="myModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title">{$info.title}</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="cf col-xs-12 col-lg-6">
                        <a class="btn btn-success "
                           href="{:U('Database/exportxlstpl?tables='.C('DB_PREFIX').$info[flag])}" value="">模板下载</a>
                        <!-- <a class="btn btn-success " href="{:U('addexcel')}" value="">数据导入</a> -->
                    </div>
                    <div id="state"></div>
                </div>

                <form method="post" action="/test/upexcel" enctype="multipart/form-data" onsubmit="show()">
                    <div class="widget-main">
                        <div class="form-group">
                            <div class="col-xs-12">
                                <input type="file" id="id-input-file-2" name="file">
                            </div>
                        </div>
                        <div class="space-6"></div>
                        <div>&nbsp;</div>
                        <div class="row text-right">
                            <div class="col-xs-6"></div>
                            <div class="col-xs-6">
                                <button class="btn btn-primary btn-sm" type="submit" id="import">导入确认</button>
                            </div>
                            <div class="showicon text-center" style="font-size: 40px;display: none">
                                <i class="ace-icon fa fa-spinner fa-spin orange bigger-125"></i>
                            </div>
                        </div>
                        <div id="state"></div>

                    </div>

                </form>

            </div>

        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<script>
    function show() {
        $('.showicon').show();
    }

</script>


